yum install createrepo rsync

yum install http

systemctl stop firewalld
systemctl disable firewalld

mkdir -p /yumrepo/rpms

sed -i "s#/var/www/html#/yumrepo/rpms#g" /etc/httpd/conf/httpd.conf